package com.swipemaster.common;

import com.swipemaster.R;

/**
 * Class storing all constant values.
 */
public class Constants
{
	public final static int LEVELS = 40;
	public final static int TICK_PERIOD_MS = 20;
	public static int screenWidth;
	public static int screenHeight;
	public static double screenDiagonal;
	public static double screenRatio;

	/**
	 * Return resource id of image representing given number of stars. If number of stars is not 1, 2 or 3, it returns
	 * resource id = 0. It points to no image at all.
	 * 
	 * @param stars
	 * @return Resource id to image of 1, 2 or 3 stars or 0 - no image.
	 */
	public static int getStarsResource(int stars)
	{
		switch (stars)
		{
		case 1:
			return R.drawable.one_star;
		case 2:
			return R.drawable.two_stars;
		case 3:
			return R.drawable.three_stars;
		}
		return 0;
	}
}